﻿using System;
using System.Collections.Generic;
using System.Text;

namespace CsPotrace
{
    public enum GrayMapEnum
    {
        BLACK = 0,
        WHITE = 765
    }
    public class GrayMap
    {
        /**
     *
     */
        public int width;

        /**
         *
         */
        public int height;

        /**
         *  The pixel array
         */
        int[,] pixels;
        public GrayMap(int width, int height)
        {
            this.width = width;
            this.height = height;
            this.pixels = new int[width, height];
        }
        public void SetPixel(int x, int y, int val)
        {
            if (val > 765)
                val = 765;
            this.pixels[x, y] = val;
        }
        public int GetPixel(int x, int y)
        {
            return this.pixels[x, y];
        }
    }
}
